package cc.mycraft.events;

import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;
import org.bukkit.inventory.ItemStack;

import cc.mycraft.MYCPlugin;

public final class AnvilInputFixEvent extends Event {
	
	private static final HandlerList handlers = new HandlerList();

	@Override
	public HandlerList getHandlers() {
		return handlers;
	}
	
	public static HandlerList getHandlerList() {
		return handlers;
	}
	
	private MYCPlugin Plugin;
	private ItemStack item;
	private String newName;
	private String playerName;
	private boolean isTool;
	
	public AnvilInputFixEvent(MYCPlugin plugin,ItemStack i,String name,String pn,boolean isLegal) {
		this.Plugin = plugin;
		this.isTool = isLegal;
		this.newName = name;
		this.item = i;
		this.playerName = pn;
	}
	
	public MYCPlugin getPluginInt() {
		return this.Plugin;
	}
	public boolean canBeRename() {
		return this.isTool;
	}
	public String getNewName() {
		return this.newName;
	}
	public ItemStack getItem() {
		return this.item;
	}
	public String getWhoRename() {
		return this.playerName;
	}
}
